<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{{site_name}}</title>
    <link rel="stylesheet" type="text/css" href="/static/css/style.css"/>
</head>
<body>

<div class="suspension">
    <p>
        {% if request.user.is_authenticated %}
        欢迎您，{{request.user.username}}
        <a href="/sign_out/">注销</a>
        <a href="/user_center/">个人中心</a>
        {% if request.user.is_staff %}
        <a href="/random/">随机商品</a>
        {%endif%}
        {% else %}
        <a href="/sign_in/">登陆</a>
        <a href="/sign_up/">注册</a>
        {% endif %}
        |
        <a href="/">主页</a>
        <a href="/admin/">系统管理</a>
        <a href="https://gitee.com/muronglengjing">访问gitee</a>
        &ensp;
    </p>
</div>

<div class="main">
    <div>
        <h1>绿兮衣兮</h1>
        <h2>岂曰无衣，与子同袍</h2>
    </div>

    {% block content %}
        {{message|safe}}
    {% endblock content %}

</div>


</body>
</html>